package com.nuoniu.sibanyun.entity.crm.call;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 客户管理-呼叫分钟数
 * </p>
 *
 * @author 白强
 * @since 2022-05-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("crm_call_minutes")
@ApiModel(value="CrmCallMinutes对象", description="客户管理-呼叫分钟数")
public class CrmCallMinutes extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "租户ID")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "年份")
    @TableField("year")
    private Integer year;

    @ApiModelProperty(value = "月份")
    @TableField("month")
    private Integer month;

    @ApiModelProperty(value = "开始时间")
    @TableField("start_time")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "结束时间")
    @TableField("end_time")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "当月购买分钟数费用合计")
    @TableField("total_amount")
    private BigDecimal totalAmount;

    @ApiModelProperty(value = "当月购买套餐分钟数费用合计")
    @TableField("base_amount")
    private BigDecimal baseAmount;

    @ApiModelProperty(value = "购买通用分钟数费用合计")
    @TableField("general_amount")
    private BigDecimal generalAmount;

    @ApiModelProperty(value = "合计套餐分钟数")
    @TableField("base_minutes_total")
    private Integer baseMinutesTotal;

    @ApiModelProperty(value = "已用套餐分钟数")
    @TableField("base_minutes_used")
    private Integer baseMinutesUsed;

    @ApiModelProperty(value = "剩余套餐分钟数")
    @TableField("base_minutes_remain")
    private Integer baseMinutesRemain;

    @ApiModelProperty(value = "当前通用分钟（可负）")
    @TableField("general_minutes_remain")
    private Integer generalMinutesRemain;

    @ApiModelProperty(value = "合计通用分钟")
    @TableField("general_minutes_total")
    private Integer generalMinutesTotal;

    @ApiModelProperty(value = "已用通用分钟")
    @TableField("general_minutes_used")
    private Integer generalMinutesUsed;

    @ApiModelProperty(value = "当月已用通用分钟")
    @TableField("general_minutes_used_month")
    private Integer generalMinutesUsedMonth;

    @ApiModelProperty(value = "状态 0：关闭  1：启用")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "管理明细")
    @TableField(exist = false)
    private List<CrmCallMinutesDetail> crmCallMinutesDetailList;



}
